/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.core.utils;

import java.util.HashMap;

import org.eclipse.gef.palette.CreationToolEntry;

/**
 * This class is used to manage image
 * In Papyrus, it is forbidden to use new Images.
 * 
 * @author Patrick Tessier
 */
public class CreationToolEntryManager extends HashMap {
	
	/** Serial version ID for this class */
	private static final long serialVersionUID = 1594255871040177603L;

	/**
	 * Adds a creation tool entry into the hashmap.
	 * @param key the symbolic name
	 * @param creationToolEntry the creationToolEntry
	 */
	
	public void put(String key, CreationToolEntry creationToolEntry){
		super.put(key, creationToolEntry);
	}
	
	/**
	 *Returns a creation tool entry from its symbolic name.
	 * @param key symbolic name of the creation tool entry to retrieve
	 * @return the creationtool Entry
	 */
	public CreationToolEntry get(String key){
		return (CreationToolEntry)super.get(key);
	}
}
